package com.allwees.bs.module.scm.req.internal;

import com.allwees.bs.core.modelbase.validate.ValidateItem;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class EnteredWarehouseSkuReq {

    /**
     * sku uuid
     **/
    private String shippingOrderSkuUuid;

    /**
     * 货架uuid
     **/
    private String shelfUuid;

    /**
     * 货位uuid
     **/
    private String slotUuid;

    public ValidateItem[] validateItems() {
        return new ValidateItem[]{
                new ValidateItem(StringUtils.isEmpty(shippingOrderSkuUuid), "sku uuid can not be blank"),
                new ValidateItem(StringUtils.isEmpty(shelfUuid), "shelf uuid can not be blank"),
                new ValidateItem(StringUtils.isEmpty(slotUuid), "slot uuid can not be blank")
        };
    }
}